cmake_minimum_required(VERSION 3.10)
project(ASIO_NET)

# 设置通用编译选项
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_VERBOSE_MAKEFILE OFF)

set(CMAKE_BUILD_TYPE Debug)
# 所以在 Linux 系统中，如果是通过包管理器安装的 Boost，
# 通常不需要设置 BOOST_ROOT。CMake 会自动在系统默认路径中查找
 set(BOOST_ROOT /path/to/boost)
# 打印BOOST_ROOT
# message(STATUS "BOOST_ROOT: ${BOOST_ROOT}")

# 这里会把需要用到的库放到对应的 这个变量中去Boost_LIBRARIES
find_package(Boost REQUIRED COMPONENTS system)
# 是否找到Boost
if(Boost_FOUND)
    message(STATUS "Boost found")
else()
    message(STATUS "Boost not found")
endif()
include_directories(${Boost_INCLUDE_DIRS})
# 打印BOOST_INCLUDE_DIRS
message(STATUS "BOOST_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")

# add_subdirectory(01)
# add_subdirectory(Tutorial)
 add_subdirectory(02)
add_subdirectory(03)
